package com.itheima.LambdaDemo;

public class LambdaDemo1 {
    public static void main(String[] args) {

       method(()-> {
           System.out.println("正在游泳-");
           }
       );
    }
    public static void method(Swim s){
        s.Swiming();
    }
}

//interface Swim{
//    public abstract void Swiming();
//}